<%@page import="models.AnnounceManagement"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="includes/header.jsp"></jsp:include>
<jsp:include page="includes/menu.jsp"></jsp:include>
<%
	ArrayList<String> contents = (ArrayList) session
			.getAttribute("contents");
	AnnounceManagement am = new AnnounceManagement();
%>

<div class="container">
	<div class="panel panel-danger setmainwidth">
		<div class="panel-heading">
			<div class="panel-title">THÔNG BÁO MỚI</div>
		</div>
		<div class="panel-body bg-info">
			<%
				for (String cont : contents) {
			%>
			<div class="panel panel-default">
				<div class="panel-heading">
					<div class="panel-title"><%=am.getDate(cont)%></div>
				</div>
				<div class="panel-body">
					<%=cont%>
				</div>
			</div>
			<%
				}
			%>

		</div>
	</div>
</div>



<jsp:include page="includes/footer.jsp"></jsp:include>
